<template>
    <div class='router-div'>
      选择需要提交数据的表
      <select v-model="selected" @change="onchange" >
        <option v-for="item in configData.submitConfig" :value ="item.tableName">{{item.showName}}</option>
      </select>
      <span>Selected: {{ selected }}</span>
    </div>
</template>

<script>
    import configData from "../../static/js/data"
    export default {
        name: "left",
        data() {return {
          selected:0,
          currTable:undefined,
          configData: configData,
        }},
        methods:{
          onchange(ele) {
            var tableName = ele.target.searchKey;
            var tableConfig;
            for (var i=0; i<this.configData.length; i++) {
              var c = this.configData[i];
              if (c.tableName == tn) {
                tableConfig = c;
                break;
              }
            }
          },
        }
    }
</script>

<style scoped>

</style>
